

import Foundation


extension Data {
    
    
    static func randomDataNetworkElement() -> Data {
        let dataArray: [UInt8] = (0..<(NDT7WebSocketConstants.Request.bulkMessageSize)).map { _ in
            UInt8.random(in: 1...255)
        }
        return dataArray.withUnsafeBufferPointer { Data(buffer: $0) }
    }
}
